/*
 * 百度在线网络技术（北京）有限公司拥有本软件版权2021并保留所有权利。
 * Copyright 2021, Baidu.com,Inc 2:Baidu Online Network Technology (Beijing) Co.,Ltd,
 * All rights reserved.
 */

package com.azdebugit.tree.tree.queue;

public class QueueNode<T> {
    private T element;
    private QueueNode next;
    //构造方法
    public QueueNode(){
        element = null;
        next = null;
    }
    public QueueNode(T Element) {
        element = Element;
    }
	
    public void setElement(T element) {
        this.element = element;
    }

    public T getElement() {
        return element;
    }

    public void setNext(QueueNode next) {
        this.next = next;
    }

    public QueueNode getNext() {
        return next;
    }
}
/*
————————————————
版权声明：本文为CSDN博主「龍龍哥」的原创文章，遵循CC 4.0 BY-SA版权协议，转载请附上原文出处链接及本声明。
原文链接：https://blog.csdn.net/baldicoot_/article/details/104540594*/
